package com.vmove.childtrain.domain;

import android.os.Parcel;
import android.os.Parcelable;

public class TeamData implements Parcelable {

    private long timeCost;
    private int Success;
    private int failed;


    public long getTimeCost() {
        return timeCost;
    }

    public void setTimeCost(long timeCost) {
        this.timeCost = timeCost;
    }

    public int getSuccess() {
        return Success;
    }

    public void setSuccess(int success) {
        Success = success;
    }

    public int getFailed() {
        return failed;
    }

    public void setFailed(int failed) {
        this.failed = failed;
    }

    public void addTime(int timeCost){
        this.timeCost+=timeCost;
    }

    public void addSuccess(){
        this.Success++;
    }

    public void reset(){
        this.timeCost=0;
        this.Success=0;
        this.failed=0;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(timeCost);
        dest.writeInt(Success);
        dest.writeInt(failed);
    }
}
